<template>
  <!-- 单元格封装 -->
  <div class="hmcell" @click="handlerClick">
    <div class="left">{{title}}</div>
    <div class="right">{{desc}}<span class="iconfont iconjiantou1"></span></div>   
  </div>
</template>
<script>
export default {
  props:['title','desc'],
  methods:{
    handlerClick(e){
      this.$emit('click',e)
    }
  }
}
</script>
<style lang="less" scoped>
.hmcell{
  padding: 15px;
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid #ccc;
  height: 50px;
  align-items: center;

  .left{
    font-size: 18px;
  }
  .right{
    font-size: 16px;
    color: #999;
    .iconfont{
      font-size: 16px;
      color: #999;
      margin-left: 10px;
    }
  }
}

</style>